package org.tc.product.service;

import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.tc.product.entity.Stocked;
import org.tc.product.util.PageHelper;

import java.util.List;

@RequestMapping("/StockedService")
public interface StockedService {

    //商品仓库查询
    @RequestMapping("/selectAllStock")
    PageHelper<Stocked> selectAllStocked(@RequestParam("pageNo") int pageNo, @RequestParam("pageSize") int pageSize, @RequestParam("storeid") Integer storeid);

    //商品仓库信息更新
    @RequestMapping("/updStock")
    int updStock(@RequestBody Stocked stocked);

    //商品仓库新增
    @RequestMapping("/insertStocked")
    int insertStocked(@RequestBody Stocked record);

    //商品下架原因
    @RequestMapping("/updStockBec")
    int updStockBec(@RequestBody Stocked stocked);

}
